package util
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;

	public class ResourceManager
	{
		[Embed(source="../assets/cloud.png")]
		public static var cloud:Class;
		public static var gcloud:GraphicsResource = new GraphicsResource(new cloud());
		
		[Embed(source="../assets/panda.png")]
		public static var panda:Class;
		
		public static var pandaBitmapData:BitmapData = (new panda() as Bitmap).bitmapData;
		
		public static var gpandaRun:GraphicsResource = new GraphicsResource(
				new Bitmap(AnimationFactory.instance.cutBitmapData(pandaBitmapData,0,0,pandaBitmapData.width,pandaBitmapData.height/8)),8,10
			);
		
		public static var gpandaJump:GraphicsResource = new GraphicsResource(
			new Bitmap(AnimationFactory.instance.cutBitmapData(pandaBitmapData,1,0,pandaBitmapData.width,pandaBitmapData.height/8)),8,2
		);
	}
}